package com.cskaoyan.day31.work5.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student {

    private String name;
    private Integer age;
    public void study(){
        System.out.println("学习");
    }
    public void eat(String name){
        System.out.println("吃"+name +"，"+name+"太好吃辣");
    }
    public void sleep(){
        System.out.println("睡觉");
    }
}
